package com.gml.design.principle.jiekougeli.optimize;

import com.gml.design.principle.jiekougeli.optimize.impl.HeroHouYi;
import com.gml.design.principle.jiekougeli.optimize.impl.HeroLianPo;

public class Test {

    //将技能接口拆分，各自定义各自类型的接口，不同的英雄去实现不同的技能接口
    //各自接口维护自己的技能，不会混用，各自隔离
    public static void main(String[] args) {
        // 后裔
        HeroHouYi heroHouYi = new HeroHouYi();
        heroHouYi.doArchery();

        // 廉颇
        HeroLianPo heroLianPo = new HeroLianPo();
        heroLianPo.doInvisible();
    }
}
